/**
 * 
 */
package com.lehecai.core.api.setting;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author Sunshow
 * 配置常量类
 */
public class SettingConstant {

	public static final String GROUP_ADMIN = "admin";
	public static final String GROUP_LOTTERY_CONFIG = "lottery_config";
	public static final String GROUP_LOTTERY_TICKET_CONFIG = "lottery_ticket_config";
	public static final String GROUP_REWARD_SMS_CONFIG = "reward_sms";//中奖自动发送短信配置组定义
	public static final String GROUP_LOTTERY_STOP_SELL_CONFIG = "lottery_stop_sell";//全局彩种是否停售配置组定义
	public static final String GROUP_ENGINE_ADDRESS_CONFIG = "engine_address";//engine调用地址配置组定义
	public static final String GROUP_CHASE_CANCEL_SMS_CONFIG = "chase_cancel_sms";//追号撤销自动发送短信配置组定义
	public static final String GROUP_CHASE_COMPLETE_SMS_CONFIG = "chase_complete_sms";//追号完成自动发送短信配置组定义
	public static final String GROUP_CHASE_STOPPED_SMS_CONFIG = "chase_stopped_sms";//追号中奖后终止自动发送短信配置组定义
	public static final String GROUP_CHASE_DRAW_FAILED_SMS_CONFIG = "chase_draw_failed_sms";//开奖失败追号撤销自动发送短信配置组定义
	
	public static final String ITEM_HIGHLIGHT_UID_LIST = "highlight_uid_list";
	
	//移动终端停售-start
	public static final String APP_VERSION_LOTTERY_STOP_SELL = "app_version_lottery_stop_sell";   
	public static final String LOTTERY_STOP_SELL_APP_TYPE_3 = "lottery_stop_sell_app_type_3";
	public static final String LOTTERY_STOP_SELL_APP_TYPE_2 = "lottery_stop_sell_app_type_2";
	public static final String LOTTERY_STOP_SELL_APP_TYPE_6 = "lottery_stop_sell_app_type_6";
	
	static private Map<String,String> mobilePlatformTypeMap = new LinkedHashMap<String,String>();
	static{
		mobilePlatformTypeMap.put(LOTTERY_STOP_SELL_APP_TYPE_3, "官方Android标准版");
		mobilePlatformTypeMap.put(LOTTERY_STOP_SELL_APP_TYPE_2, "官方iOS标准版");
		mobilePlatformTypeMap.put(LOTTERY_STOP_SELL_APP_TYPE_6, "官方iPad标准版");
	}

    public static String getPlatform(String code) {
        return mobilePlatformTypeMap.get(code);
    }
    
    public static Map<String,String> getPlatformMap() {
        return mobilePlatformTypeMap;
    }
	
    public static String getOperator(String code) {
        return operatorsMap.get(code);
    }
    
    public static Map<String,String> getOperatorsMap() {
        return operatorsMap;
    }
    
	public static final String API_OP_EQUAL = "=";            //等于
	public static final String API_OP_LESS_EQUAL = "<=";      //小于等于
	public static final String API_OP_GREATER_EQUAL = ">=";   //大于等于
	public static final String API_OP_LESS = "<";             //小于
	public static final String API_OP_GREATER = ">";          //大于
	static private Map<String,String> operatorsMap = new HashMap<String,String>();
	static{
		operatorsMap.put(API_OP_EQUAL, "等于");
		operatorsMap.put(API_OP_LESS_EQUAL, "小于等于");
		operatorsMap.put(API_OP_GREATER_EQUAL, "大于等于");
		operatorsMap.put(API_OP_LESS, "小于");
		operatorsMap.put(API_OP_GREATER, "大于");
	}

	//移动终端停售-end
}
